import * as API from '../index';
export default {
    getMoviesScore: (id) => {
        return API.GET(`/score/${id}`);
    },
    getAllTypes: params => {
        return API.GET('/show/types', params);
    },
    getTopActors: params => {
        return API.GET('/show/hotActors', params);
    },
    getCountByArea: params => {
        return API.POST('/count/type', params);
    },
    getCountByType: params => {
        return API.POST('/count/city', params);
    },
    getAllAreas: params => {
        return API.GET('/show/city', params);
    },
    getCountByDate: (date) => {
        return API.GET(`/count/date/2/${date}`);
    },
    getCountByYear: () => {
        return API.GET(`/count/date/1/2023`);
    },
    getMovies:params=>{
        return API.POST('/show/films',params)
    }
}